#include "ByteBool.h"

bool ByteBool::CheckBool(unsigned char Position) 
{
	Position = Position % 8;
	int On = Byte & (1 << Position);
	return (On) ? true:false;
}

bool ByteBool::ToggleBool(unsigned char Position)
{
	Position = Position % 8;
	Byte ^= (1 << Position);
	return CheckBool(Position);
}